import axios from 'axios'
import qs from 'qs'

export async function getAllItems() {
    let resp = await axios.post("/api/acb/item/getAllItems",qs.stringify)
    console.log(resp); 
    return resp.data.data;
}


export async function deleteItem(tid) {
    let resp = await axios.get("/api/acb/item/deleteItem",{
        params:{
            tid:tid
        }
    });
    return resp.data
}

export async function getItemById(tid) {
    let resp = await axios.get("/api/acb/item/getItemById",{
        params:{
            tid:tid
        }
    });
    return resp.data
}